//Copyright (c) 2012 The cwkshell Authors. All rights reserved. 
// Use of this source code is governed by a BSD-style license that can be 
// found in the LICENSE file. 
#ifndef CUC_CWKSHELL_VIEW_SHELL_BROWSER_CONTAINER_H_ 
#define  CUC_CWKSHELL_VIEW_SHELL_BROWSER_CONTAINER_H_ 

#include "cuc/src/cwkshell/common/url_constants.h" 
#include "cuc/src/cwkshell/view/shell_window.h" 

namespace cuc{ 
	namespace shell{ 
	
		class ShellBrowserContainer : public ShellWindow
		 {
		public:
			virtual ~ShellBrowserContainer();
		private:
			
			friend class ShellBrowser;

			explicit ShellBrowserContainer(content::WebContents* web_contents);

		
			static ShellBrowserContainer* CreatShellBrowserContainer(content::WebContents* web_contents);
			
			//Overridden from cuc::shell::ShellWindow:
			virtual void ResizeSubViews();
			
			// Overridden from views::View:
			virtual string16 GetWindowTitle() const OVERRIDE;
			virtual gfx::Size GetPreferredSize() OVERRIDE {
				gfx::Size ps(kCwkshellContainerDefaultWidth,kCwkshellContainerDefaultHeight);
				return ps;
			}
			
			
			// Overridden from views::WidgetDelegate:
			virtual views::NonClientFrameView* 
				CreateNonClientFrameView(views::Widget* widget) OVERRIDE;
		   
			const int KTitleButtonHeight;

			DISALLOW_COPY_AND_ASSIGN(ShellBrowserContainer);
		};
	} //namespace shell 
} //namespace cuc 
#endif //CUC_CWKSHELL_VIEW_SHELL_BROWSER_CONTAINER_H_ 
